package com.bugbuff.dubbo.server.controller;

import com.bugbuff.dubbo.server.service.HoutaiService;
import com.bugbuff.dubbo.server.vo.SummaryVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("management/dashboard")
public class HoutaiController {
@Autowired
private HoutaiService houtaiService;

    @GetMapping("summary")
    public SummaryVo querySummary(){
       return   this.houtaiService.querySummary();
    }
}
